package org.clipjoint.service.impl;

import org.clipjoint.dao.GameDao;
import org.clipjoint.dao.impl.GameDaoImpl;
import org.clipjoint.entity.Game;
import org.clipjoint.entity.Purchased;
import org.clipjoint.service.GameService;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;

public class GameServiceImpl implements GameService {

    private GameDao gameDao = new GameDaoImpl();

    @Override
    public List<Game> RPGGame() throws SQLException {
        return gameDao.RPGGame();
    }

    @Override
    public List<Game> BanGAME() throws SQLException {
        return gameDao.BanGAME();
    }

    @Override
    public List<Game> showNew() throws SQLException {
        return gameDao.showNew();
    }

    @Override
    public List<Purchased> hot() throws SQLException {
        return gameDao.hot();
    }



    @Override
    public int delete(Long keyword) throws SQLException {
        return gameDao.delete(keyword);
    }


}
